<?php
/**
 * Created by PhpStorm.
 * User: stupboy
 * Date: 2018/6/22
 * Time: 14:16
 * Mail:87658989@qq.com
 */

namespace app\adminapi\controller;

use app\adminapi\logic;

class Unit extends Base
{
    /**
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function orderType(){
        $type = input('type',1);
        $data = (new logic\Unit())->orderTypeCount($type);
        return $this->retSucc($data);
    }
}